builder-tool: Set the parent of newly created GtkAssistantPage
authorLubomir Rintel <lkundrak@v3.sk>
Thu, 30 May 2019 09:29:50 +0000 (11:29 +0200)
committerLubomir Rintel <lkundrak@v3.sk>
Thu, 30 May 2019 09:39:09 +0000 (11:39 +0200)
commit1e7225aa1c20525da023f378405de0a8e4c9fc2d
tree372925eff9aca2815d21ebc68441bacac7716fba
parentd691393f5f17a5ec56e14a46fe95bc111b646e6a
builder-tool: Set the parent of newly created GtkAssistantPage

...and its property. Otherwise simplify_element() blows up when looking
up the hierarchy to determine a property type.

  $ gtk4-builder-tool simplify --3to4 /dev/stdin <<EOF
  > <?xml version="1.0" encoding="UTF-8"?>
  > <!-- Generated with glade 3.20.2 -->
  > <interface domain="nm-applet">
  >   <object class="GtkAssistant">
  >     <child>
  >       <object class="GtkBox" id="confirm_page">
  >       </object>
  >       <packing>
  >         <property name="page_type">confirm</property>
  >         <property name="complete">True</property>
  >       </packing>
  >     </child>
  >   </object>
  > </interface>
  > EOF
  /dev/stdin: Packing property GtkAssistant::page_type not found
  /dev/stdin: Packing property GtkAssistant::complete not found
  Segmentation fault (core dumped)
gtk/tools/gtk-builder-tool-simplify.c